<?php
return [
    // 扫描目录
    'beanScan'    =>    [
        'ImiDemo\TcpDemo\MainServer\Controller',
        'ImiDemo\TcpDemo\MainServer\Listener',
    ],
    'beans'    =>    [
        'GroupRedis'    =>    [
            'redisPool'    =>    'redis',
            'key'        =>    'IMIDEMO.TCP.GROUP',
            'heartbeatTimespan'    =>    5, // 心跳时间，单位：秒
            'heartbeatTtl'    =>    8, // 心跳数据过期时间，单位：秒
        ],
        'ConnectContextRedis'    =>    [
            'redisPool'    =>    'redis',
            'key'        =>    'IMIDEMO.TCP.CONNECT_CONTEXT',
            'heartbeatTimespan'    =>    5, // 心跳时间，单位：秒
            'heartbeatTtl'    =>    8, // 心跳数据过期时间，单位：秒
        ],
        'TcpDispatcher'    =>    [
            'middlewares'    =>    [
                \Imi\Server\TcpServer\Middleware\RouteMiddleware::class,
                \Imi\Server\TcpServer\Middleware\ActionMiddleware::class,
            ],
        ],
    ],
];